﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">
  <class name="Cuenta" table="common_Cuenta">
    <id name="Identity" column="CuentaId"  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Codigo" column="Codigo" type="String" length="50" not-null="false"/>
    <property name="Nombre" column="Nombre" type="String" length="50"  not-null="false"/>
    <property name="CuentaTipo" column="CuentaTipo" type="String" length="50"  not-null="false"/>
    <property name="CuentaPrincipal" column="CuentaPrincipal" type="String" length="50"  not-null="false"/>
    <property name="Nivel" column="Nivel" type="int"  not-null="false"/>
    <many-to-one name="AgenciaRef" column="AgenciaId" class="OpenSda.Agilcont.Common.Data.Entities.Agencia, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />
    
  </class>
</hibernate-mapping>
